<!DOCTYPE html>
<html lang="utf-8">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>易备安数据管理平台</title>
    <!-- Bootstrap -->
    <link href="/web/css/bootstrap/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="/web/css/basic.css">
    <link rel="stylesheet" type="text/css" href="/web/css/client-common.css">
    <link rel="stylesheet" type="text/css" href="/web/css/g.css">
    <style type="text/css">
    	.btn{
    		padding:5px 5px;
    		margin:0 5px;
    	}
    </style>
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]> 
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="container">
<input type="hidden" id="h_dsId" />
<input type="hidden" id="h_status" />
<input type="hidden" id="h_dsSecurityRank" />
<input type="hidden" id="h_whichGetModel" />
    <div class="index-page">
    	<div class="data-grid">
	        <form class="form-inline">
              <div class="grid-toolbar">	                    
                  <div class="search-group">
                     	<label for="srch_type">类型：</label>
                      <select id="srch_type">
                          <option value="">所有</option>
                          <option value="0">文件夹</option>
                          <option value="1">数据库</option>
                          <option value="2">数据保险箱</option>
                      </select>
                  </div>
                  <div class="search-group search-group-name">
                      <label for="srch_name">名称：</label>
                      <input type="text" id="srch_name">
                  </div>
                  <!-- <div class="search-group">
                      <label for="srch_status">状态：</label>
                      <select  id=""srch_status"">
                          <option value="">所有</option>
                          <option value="1230">启用</option>
                          <option value="4">停用</option>
                      </select>
                  </div> -->
                  <div class="search-btns">                                
                      <button type="button" onclick="filter('btn')" class="btn btn-lg btn-info"><i class="icos icos-search fl"></i><span class="fl">查询</span></button>
                      <button type="button" onclick="resetInfo()" class="btn btn-lg btn-info"><i class="icos icos-reset fl"></i><span class="fl">重置</span></button>
                      <button type="button" class="btn btn-lg btn-info"
                              onclick='window.location.href="datasource_add.html";'>
                          <i class="icos icos-add fl"></i><span class="fl">新增</span>
                      </button>
                  </div>
              </div>	
	       </form>
	       <table class="table g-mt10 g-mb30">
	            <thead id="dsHead">
		            <th width="15%">数据源名称</th>
		            <th width="15%">数据源根目录</th>
		            <th width="15%">数据源类型</th>
		            <th width="30%">操作</th>
		            <th width="25%">状态</th>
	            </thead>		            
	            <tbody id="dsBody" class="tbody">
	            <tr><td style='text-align:center' colspan='5'>加载中...</td></tr>
	            </tbody>
	        </table>
	        <div id="fenye" class="grid-page clearfix">
				<div id="l-info" class="page-left fl">
					当前页(<span id="c-page"></span>/
					<span id="t-page"></span>)页
				</div>
				<div id="r-info" class="page-right fr">
					<a href="javascript:;" onclick="page('first')">首页</a>
					<a href="javascript:;" class="j-page-prev" onclick="page('prev')"><i class="i-arrow-left"></i>上一页</a>					
					<span>第<input type="text" value="1" class="j-page-cur"  id="w-page">页</span>
					<a href="javascript:;" class="j-page-next" onclick="page('next')"><em>下一页</em><i class="i-arrow-right"></i></a>
					<a href="javascript:;" class="j-page-last" onclick="page('last')">尾页</a>
					<a href="javascript:;" onclick="javascript:window.location.reload();">刷新</a>					
				</div>
			</div>
    	</div>     
	</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="/web/js/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="/web/js/bootstrap/bootstrap.min.js"></script>
<script src="/web/js/jquery_rest.js"></script>
<script src="/web/js/ebeim.js"></script>
<script src="/web/js/client-common.js"></script>

<script src="js/datasource.js"></script>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" style="max-height:500px;overflow-y:auto" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
              点击获取验证码，系统将向您的手机发送验证码。
            </h4>
         </div>
         <div class="modal-body" id="modal-body" style="text-align: center;">
            <input style="margin-right:15px;" class="input input-large" type="text" id="dynamicCode"/>
            <button id="sendCodeBtn" onclick="send()" class="btn btn-success">获取验证码</button>
         </div>
         <div class="modal-footer">
            <!-- <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button> -->
            <button onclick="setDynamicCode()" type="button" class="btn btn-primary">
              确定
            </button>
         </div>
      </div><!-- /.modal-content -->
</div>
</body>
</html>